package com.shark.teach;

import java.util.ArrayList;
import java.util.List;

/**
 * -Xms10m -Xmx10m -Xlog:gc*
 *
 * @auther shark
 * @create 2024-07-31 17:56
 */
public class OOM_G1Demo
{
    public static String baseString = "www.atguigu.com";

    public static void main(String[] args)
    {
        List<String> list = new ArrayList<>();

        try
        {

        }catch (Exception e){
            e.printStackTrace(); //jstack
        }finally {

        }

        for (int i = 1; i <=10000 ; i++) {
            String tmpString = baseString + baseString;
            baseString = tmpString;
            list.add(tmpString);
        }


    }
}
